package com.qcby.model.dto;

import com.qcby.model.Cinema;
import com.qcby.model.Hall;
import lombok.*;

import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CinemaVo {
    private Integer cId;

    private String cName;

    private String address;

    private List<Hall> hallList = new ArrayList<>();

    public CinemaVo(Cinema cinema,List<Hall> hallList){
        this.cId = cinema.getcId();
        this.cName = cinema.getcName();
        this.address = cinema.getAddress();
        this.hallList.addAll(hallList);
    }
}
